package com.hutao.manage.model;

import java.math.BigDecimal;
import java.text.ParseException;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

import org.apache.commons.lang3.StringUtils;

import com.hutao.manage.pojo.StatisticalReportParam;
import com.hutao.manage.util.DateUtil;
import com.hutao.manage.util.NumUtil;

public class ReportTemplate {

	public static String getHeadTemplate(EmergencyIndicatorsInfo emergencyIndicatorsInfo) {

		String month = emergencyIndicatorsInfo.getMonth();
		String year = month.split("-")[0];
		String mon = month.split("-")[1];

		String totalConsultationTreatmentRateCompare = emergencyIndicatorsInfo.getTotalConsultationTreatmentRateCompare();

		String totalConsultationTreatmentRateCompareBeforeYear = emergencyIndicatorsInfo.getTotalConsultationTreatmentRateCompareBeforeYear();

		String emergencyDepartmentCompare =emergencyIndicatorsInfo.getEmergencyDepartmentCompare();

		String emergencyDepartmentCompareBeforeYear =emergencyIndicatorsInfo.getEmergencyDepartmentCompareBeforeYear();

		/**
		 * 普通门诊人次数同期相比上升/下降
		 */
		String outpatientServiceComparer =emergencyIndicatorsInfo.getOutpatientServiceComparer();

		/**
		 * 普通门诊人次数同期相比上升%
		 */
		String outpatientServiceCompareBeforeYear =emergencyIndicatorsInfo.getOutpatientServiceCompareBeforeYear();

		/**
		 * 出院人数同期相比上升/下降
		 */
		String outHospNUmCompare = emergencyIndicatorsInfo.getOutHospNUmCompare();

		/**
		 * 出院人数同期相比上升%
		 */
		String outHospNUmCompareBeforeYear =emergencyIndicatorsInfo.getOutHospNUmCompareBeforeYear();

		String template = "" + year + "年" + mon + "月份，全院总诊疗人次数与去年同期相比" + totalConsultationTreatmentRateCompare + ""
				+ totalConsultationTreatmentRateCompareBeforeYear + "%，其中，门急诊人次数与去年同期" + emergencyDepartmentCompare + ""
				+ emergencyDepartmentCompareBeforeYear + "%，普通门诊人次数同期相比" + outpatientServiceComparer + ""
				+ outpatientServiceCompareBeforeYear + "%；出院人数同期相比" + outHospNUmCompare + ""
				+ outHospNUmCompareBeforeYear + "%。详细分析如下：";

		return template;
		
	}
		
		
		public static String getHeadTemplate(Map<String, Object> emergencyIndicatorsInfoMap) {

			String month = (String) emergencyIndicatorsInfoMap.get("month");
			String year = month.split("-")[0];
			String mon = month.split("-")[1];

			String totalConsultationTreatmentRateCompare = (String) emergencyIndicatorsInfoMap
					.get("totalConsultationTreatmentRateCompare");

			String totalConsultationTreatmentRateCompareBeforeYear = (String) emergencyIndicatorsInfoMap
					.get("totalConsultationTreatmentRateCompareBeforeYear");

			String emergencyDepartmentCompare = (String) emergencyIndicatorsInfoMap.get("emergencyDepartmentCompare");

			String emergencyDepartmentCompareBeforeYear = (String) emergencyIndicatorsInfoMap
					.get("emergencyDepartmentCompareBeforeYear");

			/**
			 * 普通门诊人次数同期相比上升/下降
			 */
			String outpatientServiceComparer = (String) emergencyIndicatorsInfoMap.get("outpatientServiceComparer");

			/**
			 * 普通门诊人次数同期相比上升%
			 */
			String outpatientServiceCompareBeforeYear = (String) emergencyIndicatorsInfoMap
					.get("outpatientServiceCompareBeforeYear");

			/**
			 * 出院人数同期相比上升/下降
			 */
			String outHospNUmCompare = (String) emergencyIndicatorsInfoMap.get("outHospNUmCompare");

			/**
			 * 出院人数同期相比上升%
			 */
			String outHospNUmCompareBeforeYear = (String) emergencyIndicatorsInfoMap.get("outHospNUmCompareBeforeYear");

			String template = "" + year + "年" + mon + "月份，全院总诊疗人次数与去年同期相比" + totalConsultationTreatmentRateCompare + ""
					+ totalConsultationTreatmentRateCompareBeforeYear + "%，其中，门急诊人次数与去年同期" + emergencyDepartmentCompare + ""
					+ emergencyDepartmentCompareBeforeYear + "%，普通门诊人次数同期相比" + outpatientServiceComparer + ""
					+ outpatientServiceCompareBeforeYear + "%；出院人数同期相比" + outHospNUmCompare + ""
					+ outHospNUmCompareBeforeYear + "%。详细分析如下：";

			return template;

	}
		
		
		public static String getEmergencyIndicatorsTemplate(EmergencyIndicatorsInfo emergencyIndicatorsInfo) {

			String month = emergencyIndicatorsInfo.getMonth();
			String year = month.split("-")[0];
			String mon = month.split("-")[1];
			// 去年同期对比
			EmergencyIndicatorsStaticsRecord wholeHospitalConsultantStaticsRecord = emergencyIndicatorsInfo.getWholeHospitalConsultantStaticsRecord();

			// 门急诊总诊疗人数对比
			EmergencyIndicatorsStaticsRecord emergencyDepartmentStaticsRecord = emergencyIndicatorsInfo.getEmergencyDepartmentStaticsRecord();

			// 普通门诊总诊疗人次数
			EmergencyIndicatorsStaticsRecord outpatientServiceStaticsRecord = emergencyIndicatorsInfo.getOutpatientServiceStaticsRecord();

			String template = "" + year + "年" + mon + "月份全院总诊疗人次数为"
					+ emergencyIndicatorsInfo.getWholeHospitalConsultantsGeneralNum() + "人次，比去年同期的"
					+ wholeHospitalConsultantStaticsRecord.getBeforeYearWholeHospitalConsultantsGeneralNum() + "人次"
					+ wholeHospitalConsultantStaticsRecord.getBeforeYearWholeHospitalConsultantsPlusOrMinus() + ""
					+ wholeHospitalConsultantStaticsRecord.getBeforeYearWholeHospitalConsultantsPlusOrMinusTimes() + "人次，"
					+ wholeHospitalConsultantStaticsRecord.getBeforeYearWholeHospitalConsultantsIncreaseOrDecrease() + "为"
					+ wholeHospitalConsultantStaticsRecord.getBeforeYearWholeHospitalConsultantsIncreaseOrDecreaseRate()
					+ "%；比上月的" + wholeHospitalConsultantStaticsRecord.getBeforeMonthWholeHospitalConsultantsGeneralNum()
					+ "人次" + wholeHospitalConsultantStaticsRecord.getBeforeMonthWholeHospitalConsultantsPlusOrMinus() + ""
					+ wholeHospitalConsultantStaticsRecord.getBeforeMonthWholeHospitalConsultantsPlusOrMinusTimes()
					+ "人次，"
					+ wholeHospitalConsultantStaticsRecord.getBeforeMonthWholeHospitalConsultantsIncreaseOrDecrease()
					+ "为"
					+ wholeHospitalConsultantStaticsRecord.getBeforeMonthWholeHospitalConsultantsIncreaseOrDecreaseRate()
					+ "%。\n" + "" + mon + "月份门急诊人次数"
					+ emergencyIndicatorsInfo.getEmergencyDepartmentConsultantsGeneralNum() + "人次，比去年同期"
					+ emergencyDepartmentStaticsRecord.getBeforeYearWholeHospitalConsultantsGeneralNum() + "人次"
					+ emergencyDepartmentStaticsRecord.getBeforeYearWholeHospitalConsultantsPlusOrMinus() + ""
					+ emergencyDepartmentStaticsRecord.getBeforeYearWholeHospitalConsultantsPlusOrMinusTimes() + "人次，"
					+ emergencyDepartmentStaticsRecord.getBeforeYearWholeHospitalConsultantsIncreaseOrDecrease() + "为"
					+ emergencyDepartmentStaticsRecord.getBeforeYearWholeHospitalConsultantsIncreaseOrDecreaseRate()
					+ "%；比上月的" + emergencyDepartmentStaticsRecord.getBeforeMonthWholeHospitalConsultantsGeneralNum()
					+ "人次" + emergencyDepartmentStaticsRecord.getBeforeMonthWholeHospitalConsultantsPlusOrMinus() + ""
					+ emergencyDepartmentStaticsRecord.getBeforeMonthWholeHospitalConsultantsPlusOrMinusTimes() + "人次，"
					+ emergencyDepartmentStaticsRecord.getBeforeMonthWholeHospitalConsultantsIncreaseOrDecrease() + "为"
					+ emergencyDepartmentStaticsRecord.getBeforeMonthWholeHospitalConsultantsIncreaseOrDecreaseRate()
					+ "%。\n" + "" + mon + "月份普通门诊人次数为"
					+ emergencyIndicatorsInfo.getOutpatientServiceConsultantsGeneralNum() + "人次，，比去年同期的"
					+ outpatientServiceStaticsRecord.getBeforeYearWholeHospitalConsultantsGeneralNum() + "人次"
					+ outpatientServiceStaticsRecord.getBeforeYearWholeHospitalConsultantsPlusOrMinus() + ""
					+ outpatientServiceStaticsRecord.getBeforeYearWholeHospitalConsultantsPlusOrMinusTimes() + "人次，"
					+ outpatientServiceStaticsRecord.getBeforeYearWholeHospitalConsultantsIncreaseOrDecrease() + "为"
					+ outpatientServiceStaticsRecord.getBeforeYearWholeHospitalConsultantsIncreaseOrDecreaseRate()
					+ "%；比上月的" + outpatientServiceStaticsRecord.getBeforeMonthWholeHospitalConsultantsGeneralNum() + "人次"
					+ outpatientServiceStaticsRecord.getBeforeMonthWholeHospitalConsultantsPlusOrMinus() + ""
					+ outpatientServiceStaticsRecord.getBeforeMonthWholeHospitalConsultantsPlusOrMinusTimes() + "人次，"
					+ outpatientServiceStaticsRecord.getBeforeMonthWholeHospitalConsultantsIncreaseOrDecrease() + "为"
					+ outpatientServiceStaticsRecord.getBeforeMonthWholeHospitalConsultantsIncreaseOrDecreaseRate() + "%";

			return template;

		}

		
		

	public static String getEmergencyIndicatorsTemplate(Map<String, Object> emergencyIndicatorsInfoMap) {

		String month = (String) emergencyIndicatorsInfoMap.get("month");
		String year = month.split("-")[0];
		String mon = month.split("-")[1];
		// 去年同期对比
		Map<String, Object> wholeHospitalConsultantStaticsRecord = (Map<String, Object>) emergencyIndicatorsInfoMap
				.get("wholeHospitalConsultantStaticsRecord");

		// 门急诊总诊疗人数对比
		Map<String, Object> emergencyDepartmentStaticsRecord = (Map<String, Object>) emergencyIndicatorsInfoMap
				.get("emergencyDepartmentStaticsRecord");

		// 普通门诊总诊疗人次数
		Map<String, Object> outpatientServiceStaticsRecord = (Map<String, Object>) emergencyIndicatorsInfoMap
				.get("outpatientServiceStaticsRecord");

		String template = "" + year + "年" + mon + "月份全院总诊疗人次数为"
				+ emergencyIndicatorsInfoMap.get("wholeHospitalConsultantsGeneralNum") + "人次，比去年同期的"
				+ wholeHospitalConsultantStaticsRecord.get("beforeYearWholeHospitalConsultantsGeneralNum") + "人次"
				+ wholeHospitalConsultantStaticsRecord.get("beforeYearWholeHospitalConsultantsPlusOrMinus") + ""
				+ wholeHospitalConsultantStaticsRecord.get("beforeYearWholeHospitalConsultantsPlusOrMinusTimes") + "人次，"
				+ wholeHospitalConsultantStaticsRecord.get("beforeYearWholeHospitalConsultantsIncreaseOrDecrease") + "为"
				+ wholeHospitalConsultantStaticsRecord.get("beforeYearWholeHospitalConsultantsIncreaseOrDecreaseRate")
				+ "%；比上月的" + wholeHospitalConsultantStaticsRecord.get("beforeMonthWholeHospitalConsultantsGeneralNum")
				+ "人次" + wholeHospitalConsultantStaticsRecord.get("beforeMonthWholeHospitalConsultantsPlusOrMinus") + ""
				+ wholeHospitalConsultantStaticsRecord.get("beforeMonthWholeHospitalConsultantsPlusOrMinusTimes")
				+ "人次，"
				+ wholeHospitalConsultantStaticsRecord.get("beforeMonthWholeHospitalConsultantsIncreaseOrDecrease")
				+ "为"
				+ wholeHospitalConsultantStaticsRecord.get("beforeMonthWholeHospitalConsultantsIncreaseOrDecreaseRate")
				+ "%。\n" + "" + mon + "月份门急诊人次数"
				+ emergencyIndicatorsInfoMap.get("emergencyDepartmentConsultantsGeneralNum") + "人次，比去年同期"
				+ emergencyDepartmentStaticsRecord.get("beforeYearWholeHospitalConsultantsGeneralNum") + "人次"
				+ emergencyDepartmentStaticsRecord.get("beforeYearWholeHospitalConsultantsPlusOrMinus") + ""
				+ emergencyDepartmentStaticsRecord.get("beforeYearWholeHospitalConsultantsPlusOrMinusTimes") + "人次，"
				+ emergencyDepartmentStaticsRecord.get("beforeYearWholeHospitalConsultantsIncreaseOrDecrease") + "为"
				+ emergencyDepartmentStaticsRecord.get("beforeYearWholeHospitalConsultantsIncreaseOrDecreaseRate")
				+ "%；比上月的" + emergencyDepartmentStaticsRecord.get("beforeMonthWholeHospitalConsultantsGeneralNum")
				+ "人次" + emergencyDepartmentStaticsRecord.get("beforeMonthWholeHospitalConsultantsPlusOrMinus") + ""
				+ emergencyDepartmentStaticsRecord.get("beforeMonthWholeHospitalConsultantsPlusOrMinusTimes") + "人次，"
				+ emergencyDepartmentStaticsRecord.get("beforeMonthWholeHospitalConsultantsIncreaseOrDecrease") + "为"
				+ emergencyDepartmentStaticsRecord.get("beforeMonthWholeHospitalConsultantsIncreaseOrDecreaseRate")
				+ "%。\n" + "" + mon + "月份普通门诊人次数为"
				+ emergencyIndicatorsInfoMap.get("outpatientServiceConsultantsGeneralNum") + "人次，，比去年同期的"
				+ outpatientServiceStaticsRecord.get("beforeYearWholeHospitalConsultantsGeneralNum") + "人次"
				+ outpatientServiceStaticsRecord.get("beforeYearWholeHospitalConsultantsPlusOrMinus") + ""
				+ outpatientServiceStaticsRecord.get("beforeYearWholeHospitalConsultantsPlusOrMinusTimes") + "人次，"
				+ outpatientServiceStaticsRecord.get("beforeYearWholeHospitalConsultantsIncreaseOrDecrease") + "为"
				+ outpatientServiceStaticsRecord.get("beforeYearWholeHospitalConsultantsIncreaseOrDecreaseRate")
				+ "%；比上月的" + outpatientServiceStaticsRecord.get("beforeMonthWholeHospitalConsultantsGeneralNum") + "人次"
				+ outpatientServiceStaticsRecord.get("beforeMonthWholeHospitalConsultantsPlusOrMinus") + ""
				+ outpatientServiceStaticsRecord.get("beforeMonthWholeHospitalConsultantsPlusOrMinusTimes") + "人次，"
				+ outpatientServiceStaticsRecord.get("beforeMonthWholeHospitalConsultantsIncreaseOrDecrease") + "为"
				+ outpatientServiceStaticsRecord.get("beforeMonthWholeHospitalConsultantsIncreaseOrDecreaseRate") + "%";

		return template;

	}

	public static List<BedTableRecord> getBedTableRecordList(BedRelatedIndicatorsInfo bedRelatedIndicatorsInfo) {
		String month = bedRelatedIndicatorsInfo.getMonth();

		List<BedTableRecord> bedTableRecordList = new LinkedList<>();
		Date nowMonthTime = null;
		try {
			nowMonthTime = DateUtil.dateParse("yyyy-MM", month);
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		String nowMonth = DateUtil.dateFormat("yyyy年MM月", nowMonthTime);
		String preYearMonth = DateUtil.getPreYearMonth(nowMonthTime);
		String preMonth = DateUtil.getPreMonth(nowMonthTime);
		// 床位周转率记录
		BedRotationUseRateRecord bedRotationRecord = bedRelatedIndicatorsInfo.getBedRotationRecord();
		// 床位使用率记录
		BedRotationUseRateRecord bedUserRateRecord = bedRelatedIndicatorsInfo.getBedUserRateRecord();

		BedTableRecord bedTableRecord = new BedTableRecord();
		// 当月病床周转使用率
		BedRecord nowMonthBedRecord = bedRelatedIndicatorsInfo.getNowMonthBedRecord();
		bedTableRecord.setItem(nowMonth);
		bedTableRecord.setRealBedNum(nowMonthBedRecord.getRealBedNum());
		bedTableRecord.setRealOpenBedNum(nowMonthBedRecord.getRealOpenBedNum());
		bedTableRecord.setRealOccupyBedNum(nowMonthBedRecord.getRealOccupyBedNum());
		bedTableRecord.setOutPersonsOccupyBedNums(nowMonthBedRecord.getOutPersonsOccupyBedNums());
		bedTableRecord.setBedRoateRate(NumUtil.round(bedRelatedIndicatorsInfo.getBedRotationRate(), 2));
		bedTableRecord.setBedUseRate(NumUtil.round(bedRelatedIndicatorsInfo.getBedUserRate(), 2));
		bedTableRecordList.add(bedTableRecord);
		// 去年同月病床周转使用率
		BedTableRecord bedTableRecord1 = new BedTableRecord();
		BedRecord preYearBedRecord = bedRelatedIndicatorsInfo.getPreYearBedRecord();
		bedTableRecord1.setItem(preYearMonth);
		bedTableRecord1.setRealBedNum(preYearBedRecord.getRealBedNum());
		bedTableRecord1.setRealOpenBedNum(preYearBedRecord.getRealOpenBedNum());
		bedTableRecord1.setRealOccupyBedNum(preYearBedRecord.getRealOccupyBedNum());
		bedTableRecord1.setOutPersonsOccupyBedNums(preYearBedRecord.getOutPersonsOccupyBedNums());
		bedTableRecord1.setBedRoateRate(bedRotationRecord.getPreYearMonthBedNum());
		bedTableRecord1.setBedUseRate(bedUserRateRecord.getPreYearMonthBedNum());
		bedTableRecordList.add(bedTableRecord1);

		// 上月病床周转使用率
		BedTableRecord bedTableRecord2 = new BedTableRecord();
		BedRecord preMonthBedRecord = bedRelatedIndicatorsInfo.getPreMonthBedRecord();
		bedTableRecord2.setItem(preMonth);
		bedTableRecord2.setRealBedNum(preMonthBedRecord.getRealBedNum());
		bedTableRecord2.setRealOpenBedNum(preMonthBedRecord.getRealOpenBedNum());
		bedTableRecord2.setRealOccupyBedNum(preMonthBedRecord.getRealOccupyBedNum());
		bedTableRecord2.setOutPersonsOccupyBedNums(preMonthBedRecord.getOutPersonsOccupyBedNums());
		bedTableRecord2.setBedRoateRate(bedRotationRecord.getPreMonthBedNum());
		bedTableRecord2.setBedUseRate(bedUserRateRecord.getPreMonthBedNum());
		bedTableRecordList.add(bedTableRecord2);

		// 比同期递减
		BedTableRecord bedTableRecord3 = new BedTableRecord();
		bedTableRecord3.setItem("比同期增减");
		bedTableRecord3.setRealBedNum(bedTableRecord.getRealBedNum() - bedTableRecord1.getRealBedNum());
		bedTableRecord3.setRealOpenBedNum(bedTableRecord.getRealOpenBedNum() - bedTableRecord1.getRealOpenBedNum());
		bedTableRecord3
				.setRealOccupyBedNum(bedTableRecord.getRealOccupyBedNum() - bedTableRecord1.getRealOccupyBedNum());
		bedTableRecord3.setOutPersonsOccupyBedNums(
				bedTableRecord.getOutPersonsOccupyBedNums() - bedTableRecord1.getOutPersonsOccupyBedNums());
		bedTableRecord3
				.setBedRoateRate(NumUtil.sub(bedTableRecord.getBedRoateRate(), bedTableRecord1.getBedRoateRate()));
		bedTableRecord3.setBedUseRate(NumUtil.sub(bedTableRecord.getBedUseRate(), bedTableRecord1.getBedUseRate()));
		bedTableRecordList.add(bedTableRecord3);

		// 比同期变化率（%）
		BedTableRecord bedTableRecord4 = new BedTableRecord();
		bedTableRecord4.setItem("比同期变化率（%）");
		bedTableRecord4.setRealBedNum(
				NumUtil.round(bedTableRecord3.getRealBedNum() / bedTableRecord1.getRealBedNum() * 100, 2));
		bedTableRecord4.setRealOpenBedNum(
				NumUtil.round(bedTableRecord3.getRealOpenBedNum() / bedTableRecord1.getRealOpenBedNum() * 100, 2));
		bedTableRecord4.setRealOccupyBedNum(
				NumUtil.round(bedTableRecord3.getRealOccupyBedNum() / bedTableRecord1.getRealOccupyBedNum() * 100, 2));
		bedTableRecord4.setOutPersonsOccupyBedNums(NumUtil.round(
				bedTableRecord3.getOutPersonsOccupyBedNums() / bedTableRecord1.getOutPersonsOccupyBedNums() * 100, 2));
		bedTableRecord4.setBedRoateRate(
				NumUtil.round(bedTableRecord3.getBedRoateRate() / bedTableRecord1.getBedRoateRate() * 100, 2));
		bedTableRecord4.setBedUseRate(
				NumUtil.round(bedTableRecord3.getBedUseRate() / bedTableRecord1.getBedUseRate() * 100, 2));
		bedTableRecordList.add(bedTableRecord4);

		// 比同期递减
		BedTableRecord bedTableRecord5 = new BedTableRecord();
		bedTableRecord5.setItem("比上月增减");
		bedTableRecord5.setRealBedNum(bedTableRecord.getRealBedNum() - bedTableRecord2.getRealBedNum());
		bedTableRecord5.setRealOpenBedNum(bedTableRecord.getRealOpenBedNum() - bedTableRecord2.getRealOpenBedNum());
		bedTableRecord5
				.setRealOccupyBedNum(bedTableRecord.getRealOccupyBedNum() - bedTableRecord2.getRealOccupyBedNum());
		bedTableRecord5.setOutPersonsOccupyBedNums(
				bedTableRecord.getOutPersonsOccupyBedNums() - bedTableRecord2.getOutPersonsOccupyBedNums());
		bedTableRecord5
				.setBedRoateRate(NumUtil.sub(bedTableRecord.getBedRoateRate(), bedTableRecord2.getBedRoateRate()));
		bedTableRecord5.setBedUseRate(NumUtil.sub(bedTableRecord.getBedUseRate(), bedTableRecord2.getBedUseRate()));
		bedTableRecordList.add(bedTableRecord5);

		// 比上月变化率（%）
		BedTableRecord bedTableRecord6 = new BedTableRecord();
		bedTableRecord6.setItem("比同期变化率（%）");
		bedTableRecord6.setRealBedNum(
				NumUtil.round(bedTableRecord5.getRealBedNum() / bedTableRecord2.getRealBedNum() * 100, 2));
		bedTableRecord6.setRealOpenBedNum(
				NumUtil.round(bedTableRecord5.getRealOpenBedNum() / bedTableRecord2.getRealOpenBedNum() * 100, 2));
		bedTableRecord6.setRealOccupyBedNum(
				NumUtil.round(bedTableRecord5.getRealOccupyBedNum() / bedTableRecord2.getRealOccupyBedNum() * 100, 2));
		bedTableRecord6.setOutPersonsOccupyBedNums(NumUtil.round(
				bedTableRecord5.getOutPersonsOccupyBedNums() / bedTableRecord2.getOutPersonsOccupyBedNums() * 100, 2));
		bedTableRecord6.setBedRoateRate(
				NumUtil.round(bedTableRecord5.getBedRoateRate() / bedTableRecord2.getBedRoateRate() * 100, 2));
		bedTableRecord6.setBedUseRate(
				NumUtil.round(bedTableRecord5.getBedUseRate() / bedTableRecord2.getBedUseRate() * 100, 2));
		bedTableRecordList.add(bedTableRecord6);

		return bedTableRecordList;

	}

	/**
	 * 生成床位报告文本
	 * 
	 * @param bedRelatedIndicatorsInfo
	 * @return
	 */
	public static String getBedInfoText(BedRelatedIndicatorsInfo bedRelatedIndicatorsInfo) {
		String month = bedRelatedIndicatorsInfo.getMonth();
		Date nowMonthTime = null;
		try {
			nowMonthTime = DateUtil.dateParse("yyyy-MM", month);
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		String nowMonth = DateUtil.dateFormat("yyyy年MM月", nowMonthTime);
		String preYearMonth = DateUtil.getPreYearMonth(nowMonthTime);
		String preMonth = DateUtil.getPreMonth(nowMonthTime);

		BedRotationUseRateRecord bedRotationRecord = bedRelatedIndicatorsInfo.getBedRotationRecord();

		BedRotationUseRateRecord bedUserRateRecord = bedRelatedIndicatorsInfo.getBedUserRateRecord();

		String template = "" + nowMonth + "床位周转率（次）为" + bedRelatedIndicatorsInfo.getBedRotationRate() + "次，比去年同期的"
				+ bedRotationRecord.getPreYearMonthBedNum() + "" + bedRotationRecord.getPreYearBedRateRateAddOrReduce()
				+ "" + bedRotationRecord.getPreYearBedRateRateAddOrReduceNum() + "，"
				+ bedRotationRecord.getPreYearBedIncreaseDecrease() + "为"
				+ bedRotationRecord.getPreYearBedIncreaseDecreaseNum() + "%；比上月的"
				+ bedRotationRecord.getPreMonthBedNum() + "人次" + bedRotationRecord.getPreMonthBedRateRateAddOrReduce()
				+ "" + bedRotationRecord.getPreMonthBedRateRateAddOrReduceNum() + "，"
				+ bedRotationRecord.getPreMonthBedIncreaseDecrease() + "为"
				+ bedRotationRecord.getPreMonthBedIncreaseDecreaseNum() + "%。\n" + "" + nowMonth + "床位使用率"
				+ bedUserRateRecord.getPreYearMonthBedNum() + "%，比去年同期的" + bedUserRateRecord.getPreYearMonthBedNum()
				+ "%" + bedUserRateRecord.getPreYearBedRateRateAddOrReduce() + ""
				+ bedUserRateRecord.getPreYearBedRateRateAddOrReduceNum() + "%，"
				+ bedUserRateRecord.getPreYearBedIncreaseDecrease() + "为"
				+ bedUserRateRecord.getPreYearBedIncreaseDecreaseNum() + "%；比上月的"
				+ bedUserRateRecord.getPreMonthBedNum() + "%" + bedUserRateRecord.getPreMonthBedRateRateAddOrReduce()
				+ "" + bedUserRateRecord.getPreMonthBedRateRateAddOrReduceNum() + "%，"
				+ bedUserRateRecord.getPreMonthBedIncreaseDecrease() + "为"
				+ bedUserRateRecord.getPreMonthBedIncreaseDecreaseNum() + "%。";
		return template;
	}

	/**
	 * 生成出院人数及死亡率文字版本
	 * 
	 * @param outDeathRateInfo
	 * @return
	 */
	public static String getOutDeathRateInfoText(OutDeathRateInfo outDeathRateInfo) {
		String month = outDeathRateInfo.getMonth();
		Date nowMonthTime = null;
		try {
			nowMonthTime = DateUtil.dateParse("yyyy-MM", month);
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		String nowMonth = DateUtil.dateFormat("yyyy年MM月", nowMonthTime);

		OutDeathRateRecord outRecord = outDeathRateInfo.getOutRecord();

		OutDeathRateRecord deathRateRecord = outDeathRateInfo.getDeathRateRecord();

		String template = "" + nowMonth + "份出院人数为" + outDeathRateInfo.getOutNum() + "人，比去年同期的"
				+ outRecord.getPreYearOutNum() + "人" + outRecord.getPreYearAddReduce() + ""
				+ outRecord.getPreYearAddReduceNum() + "人，" + outRecord.getPreYearIncreaseDecrease() + "为"
				+ outRecord.getPreYearIncreaseDecreaseNum() + "%；比上月的" + outRecord.getPreMonthOutNum() + "人"
				+ outRecord.getPreMonthAddReduce() + "" + outRecord.getPreMonthAddReduceNum() + "人，"
				+ outRecord.getPreMonthIncreaseDecrease() + "为" + outRecord.getPreMonthIncreaseDecreaseNum()
				+ "%（图2）。\n" + "" + nowMonth + "份出院患者死亡率为" + outDeathRateInfo.getDeathRate() + "%，比去年同期的"
				+ deathRateRecord.getPreYearOutNum() + "%" + deathRateRecord.getPreYearAddReduce() + ""
				+ deathRateRecord.getPreYearAddReduceNum() + "%，" + deathRateRecord.getPreYearIncreaseDecrease() + "为"
				+ deathRateRecord.getPreYearIncreaseDecreaseNum() + "%；比上月的" + deathRateRecord.getPreMonthOutNum() + "%"
				+ deathRateRecord.getPreMonthAddReduce() + "" + deathRateRecord.getPreMonthAddReduceNum() + "%，"
				+ deathRateRecord.getPreMonthIncreaseDecrease() + "为" + deathRateRecord.getPreMonthIncreaseDecreaseNum()
				+ "%\n";
		return template;
	}

	/**
	 * 获取出院死亡率charset数据
	 * 
	 * @param outDeathRateInfo
	 * @return
	 */
	public static Map<String, Object> getOutDeathRateCharsetData(OutDeathRateInfo outDeathRateInfo) {
		Map<String, Object> map = new HashMap<>();
		Date nowMonthTime = null;
		try {
			nowMonthTime = DateUtil.dateParse("yyyy-MM", outDeathRateInfo.getMonth());
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		// 月信息
		List<String> monthList = new LinkedList<>();
		String nowMonth = DateUtil.dateFormat("yyyy年MM月", nowMonthTime);
		String preYearMonth = DateUtil.getPreYearMonth(nowMonthTime);
		String preMonth = DateUtil.getPreMonth(nowMonthTime);
		monthList.add(nowMonth);
		monthList.add(preYearMonth);
		monthList.add(preMonth);
		map.put("monthList", monthList);
		// 出院人数
		List<Double> outNumList = new LinkedList<>();
		outNumList.add(outDeathRateInfo.getOutNum());
		OutDeathRateRecord outRecord = outDeathRateInfo.getOutRecord();
		outNumList.add(outRecord.getPreYearOutNum());
		outNumList.add(outRecord.getPreMonthOutNum());
		map.put("outNumList", outNumList);
		// 死亡率
		List<Double> outDeathRateList = new LinkedList<>();
		outDeathRateList.add(outDeathRateInfo.getDeathRate());
		OutDeathRateRecord deathRateRecord = outDeathRateInfo.getDeathRateRecord();
		outDeathRateList.add(deathRateRecord.getPreYearOutNum());
		outDeathRateList.add(deathRateRecord.getPreMonthOutNum());
		map.put("outDeathRateList", outDeathRateList);
		return map;

	}

	public static String getDiagTop20InfoText(DiagTop20OrderInfo diagTop20OrderInfo,StatisticalReportParam statisticalReportParam) {
		String text = "    " + statisticalReportParam.getStatics1Name() + "出院患者人数最多的疾病为" + diagTop20OrderInfo.getTop1Record().getDiagCode() + ""
				+ diagTop20OrderInfo.getTop1Record().getDiagName() + "，例数为"
				+ diagTop20OrderInfo.getTop1Record().getDiagNum() + "例，占总出院人次的"
				+ diagTop20OrderInfo.getTop1Record().getDiagNumRate() + "%;其次为"
				+ diagTop20OrderInfo.getTop2Record().getDiagCode() + diagTop20OrderInfo.getTop2Record().getDiagName()
				+ "，例数为" + diagTop20OrderInfo.getTop2Record().getDiagNum() + "例，占总出院人次的"
				+ diagTop20OrderInfo.getTop2Record().getDiagNumRate() + "%；第3-5位的疾病分别为"
				+ diagTop20OrderInfo.getTop3Record().getDiagCode() + diagTop20OrderInfo.getTop3Record().getDiagName()
				+ "、" + diagTop20OrderInfo.getTop4Record().getDiagCode()
				+ diagTop20OrderInfo.getTop4Record().getDiagName() + "、"
				+ diagTop20OrderInfo.getTop5Record().getDiagCode() + diagTop20OrderInfo.getTop5Record().getDiagName()
				+ "。前20位病种总例数为" + diagTop20OrderInfo.getTop20TotalOutNum() + "例，占总出院人次的"
				+ diagTop20OrderInfo.getTop20TotalOutNumRate() + "%。";
		return text;
	}

	public static String getOpsTop20InfoText(OperationTop20Info operationTop20Info, StatisticalReportParam statisticalReportParam) {

		String text = "    " + statisticalReportParam.getStatics1Name() + "手术顺位前五位分别为" + operationTop20Info.getTop1OpsOrder().getDiagCode()
				+ operationTop20Info.getTop1OpsOrder().getDiagName() + "、"
				+ operationTop20Info.getTop2OpsOrder().getDiagCode()
				+ operationTop20Info.getTop2OpsOrder().getDiagName() + "、"
				+ operationTop20Info.getTop3OpsOrder().getDiagCode()
				+ operationTop20Info.getTop3OpsOrder().getDiagName() + "、"
				+ operationTop20Info.getTop4OpsOrder().getDiagCode()
				+ operationTop20Info.getTop4OpsOrder().getDiagName() + "、"
				+ operationTop20Info.getTop5OpsOrder().getDiagCode()
				+ operationTop20Info.getTop5OpsOrder().getDiagName() + "。前20位手术共计"
				+ operationTop20Info.getOpsTop20TotalCount() + "人次，占全部手术人次数的" + operationTop20Info.getOpsTop20Rate()
				+ "%。";
		return text;
	}

	public static String getDeathReasonInfoText(DiagTop20OrderInfo deathReasonInfo, StatisticalReportParam statisticalReportParam) {
		/*String text = ""+year+"年"+month+"月死因顺位前3位分别为" + deathReasonInfo.getTop1Record().getDiagCode()
				+ deathReasonInfo.getTop1Record().getDiagName() + "、" + deathReasonInfo.getTop2Record().getDiagCode()
				+ deathReasonInfo.getTop2Record().getDiagName() + "和" + deathReasonInfo.getTop3Record().getDiagCode()
				+ deathReasonInfo.getTop3Record().getDiagName() + "。前20位死因共计" + deathReasonInfo.getTop20TotalOutNum()
				+ "人，占" + month + "月份死亡人数的" + deathReasonInfo.getTop20TotalOutNumRate() + "%。";*/
		
		
		StringBuilder builder = new StringBuilder();
		builder.append("    此表为住院病人死因顺位前20位。");
		if(deathReasonInfo.getTop20diagOrderRecords()!=null && deathReasonInfo.getTop20diagOrderRecords().size()>0) {
			builder.append(statisticalReportParam.getStatics1Name()).append("死因顺位前3位分别为");
			builder.append(deathReasonInfo.getTop20diagOrderRecords().get(0).getDiagName()).append("、")
			.append(deathReasonInfo.getTop20diagOrderRecords().get(1).getDiagName()).append("、")
			.append(deathReasonInfo.getTop20diagOrderRecords().get(2).getDiagName()).append("。");
			
		}
		
		if(deathReasonInfo.getLastYeartop20diagOrderRecords()!=null && deathReasonInfo.getLastYeartop20diagOrderRecords().size()>0) {
			builder.append(statisticalReportParam.getStatics3Name()).append("死因顺位前3位分别为");
			builder.append(deathReasonInfo.getLastYeartop20diagOrderRecords().get(0).getDiagName()).append("、")
			.append(deathReasonInfo.getLastYeartop20diagOrderRecords().get(1).getDiagName()).append("、")
			.append(deathReasonInfo.getLastYeartop20diagOrderRecords().get(2).getDiagName()).append("。");
			
		}
		
		if(deathReasonInfo.getPreMonthtop20diagOrderRecords()!=null && deathReasonInfo.getPreMonthtop20diagOrderRecords().size()>0) {
			builder.append(statisticalReportParam.getStatics2Name()).append("死因顺位前3位分别为");
			builder.append(deathReasonInfo.getPreMonthtop20diagOrderRecords().get(0).getDiagName()).append("、")
			.append(deathReasonInfo.getPreMonthtop20diagOrderRecords().get(1).getDiagName()).append("、")
			.append(deathReasonInfo.getPreMonthtop20diagOrderRecords().get(2).getDiagName()).append("。");
			
		}
		
		
		
		
		return builder.toString();
	}

	public static String getCostInfoText(CostFeeInfo costFeeInfo, StatisticalReportParam statisticalReportParam) {
		BaseDataRecord preMonthtotalFeeRecord = costFeeInfo.getPreMonthtotalFeeRecord();
		BaseDataRecord lastYearMonthtotalFeeRecord = costFeeInfo.getLastYearMonthtotalFeeRecord();
		BaseDataRecord preMonthAvgFeeRecord =costFeeInfo.getPreMonthAvgFeeRecord();
		BaseDataRecord lastYearAvgFeeRecord =costFeeInfo.getLastYearAvgFeeRecord();
		BaseDataRecord preMonthYzbFeeRecord =costFeeInfo.getPreMonthYzbFeeRecord();
		BaseDataRecord lastYearYzbFeeRecord =costFeeInfo.getLastYearYzbFeeRecord();
		BaseDataRecord preMonthHzbFeeRecord =costFeeInfo.getPreMonthHzbFeeRecord();
		BaseDataRecord lastYearHzbFeeRecord =costFeeInfo.getLastYearHzbFeeRecord();
		BaseDataRecord preMonthYHzbFeeRecord =costFeeInfo.getPreMonthYHzbFeeRecord();
		BaseDataRecord lastYearYHzbFeeRecord =costFeeInfo.getLastYearYHzbFeeRecord();
		String text ="    "+statisticalReportParam.getStatics1Name()+"出院患者总住院费用为"+preMonthtotalFeeRecord.getMonthNum()+"万元，比"+statisticalReportParam.getStatics3Name()+"的"+lastYearMonthtotalFeeRecord.getOtherMonthNum()+"万元"+lastYearMonthtotalFeeRecord.getOp()+lastYearMonthtotalFeeRecord.getOpNum()+"万元，"+lastYearMonthtotalFeeRecord.getRange()+"为"+lastYearMonthtotalFeeRecord.getRangePercent()+"%,"
					+"比"+statisticalReportParam.getStatics2Name()+"的"+preMonthtotalFeeRecord.getOtherMonthNum()+"万元"+preMonthtotalFeeRecord.getOp()+preMonthtotalFeeRecord.getOpNum()+"万元，"+preMonthtotalFeeRecord.getRange()+"为"+preMonthtotalFeeRecord.getRangePercent()+"%。\n"
					+"    "+statisticalReportParam.getStatics1Name()+"出院患者平均住院费用为"+preMonthAvgFeeRecord.getMonthNum()+"元，比"+statisticalReportParam.getStatics3Name()+"的"+lastYearAvgFeeRecord.getOtherMonthNum()+"元"+lastYearAvgFeeRecord.getOp()+lastYearAvgFeeRecord.getOpNum()+"元，"+lastYearAvgFeeRecord.getRange()+"为"+lastYearAvgFeeRecord.getRangePercent()+"%；"
					+"比"+statisticalReportParam.getStatics2Name()+"的"+preMonthAvgFeeRecord.getOtherMonthNum()+"元"+preMonthAvgFeeRecord.getOp()+preMonthAvgFeeRecord.getOpNum()+"元，"+preMonthAvgFeeRecord.getRange()+"为"+preMonthAvgFeeRecord.getRangePercent()+"%（图6）。\n"
					+"    "+statisticalReportParam.getStatics1Name()+"出院患者药占比为"+lastYearYzbFeeRecord.getMonthNum()+"%，比"+statisticalReportParam.getStatics3Name()+"的"+lastYearYzbFeeRecord.getOtherMonthNum()+"%"+lastYearYzbFeeRecord.getOp()+lastYearYzbFeeRecord.getOpNum()+"%，"+lastYearYzbFeeRecord.getRange()+"为"+lastYearYzbFeeRecord.getRangePercent()+"%；"
					+"比"+statisticalReportParam.getStatics2Name()+"的"+preMonthYzbFeeRecord.getOtherMonthNum()+"%"+preMonthYzbFeeRecord.getOp()+preMonthYzbFeeRecord.getOpNum()+"%，"+preMonthYzbFeeRecord.getRange()+"为"+preMonthYzbFeeRecord.getRangePercent()+"%（图6）。\n"
					+"    "+statisticalReportParam.getStatics1Name()+"出院患者耗占比为"+preMonthHzbFeeRecord.getMonthNum()+"%，比"+statisticalReportParam.getStatics3Name()+"的"+lastYearHzbFeeRecord.getOtherMonthNum()+"%"+lastYearHzbFeeRecord.getOp()+lastYearHzbFeeRecord.getOpNum()+"%，"+lastYearHzbFeeRecord.getRange()+"为"+lastYearHzbFeeRecord.getRangePercent()+"%；"
					+"比"+statisticalReportParam.getStatics2Name()+"的"+preMonthHzbFeeRecord.getOtherMonthNum()+"%"+preMonthHzbFeeRecord.getOp()+preMonthHzbFeeRecord.getOpNum()+"%，"+preMonthHzbFeeRecord.getRange()+"为"+preMonthHzbFeeRecord.getRangePercent()+"%（图6）。\n"
					+"    "+statisticalReportParam.getStatics1Name()+"出院患者药占比+耗占比为"+lastYearYHzbFeeRecord.getMonthNum()+"%，比"+statisticalReportParam.getStatics3Name()+"的"+lastYearYHzbFeeRecord.getOtherMonthNum()+"%"+lastYearYHzbFeeRecord.getOp()+lastYearYHzbFeeRecord.getOpNum()+"%，"+lastYearYHzbFeeRecord.getRange()+"为"+lastYearYHzbFeeRecord.getRangePercent()+"%；"
					+"比"+statisticalReportParam.getStatics2Name()+"的"+preMonthYHzbFeeRecord.getOtherMonthNum()+"%"+preMonthYHzbFeeRecord.getOp()+preMonthYHzbFeeRecord.getOpNum()+"%，"+preMonthYHzbFeeRecord.getRange()+"为"+preMonthYHzbFeeRecord.getRangePercent()+"%。";

		return text;
	}

	
	public static String getOpRatioText(OpNumberInfo opNumberInfo, StatisticalReportParam statisticalReportParam) {
		BaseDataRecord lastYearOpHandleNumberRecord = opNumberInfo.getLastYearOpHandleNumberRecord();
		BaseDataRecord preMonthOpHandleNumberRecord = opNumberInfo.getPreMonthOpHandleNumberRecord();
		
		BaseDataRecord lastYearOpCureNumberRecord = opNumberInfo.getLastYearOpCureNumberRecord();
		BaseDataRecord preMonthOpCureNumberRecord = opNumberInfo.getPreMonthOpCureNumberRecord();
		
		BaseDataRecord lastYearThirdForthNumberRecord= opNumberInfo.getLastYearThirdForthNumberRecord();
		BaseDataRecord preMonthThirdForthNumberRecord= opNumberInfo.getPreMonthThirdForthNumberRecord();
		
		BaseDataRecord lastYearThirdForthRatioRecord= opNumberInfo.getLastYearThirdForthRatioRecord();
		BaseDataRecord preMonthThirdForthRatioRecord= opNumberInfo.getPreMonthThirdForthRatioRecord();
		
		BaseDataRecord lastYearOpRatioRecord= opNumberInfo.getLastYearOpRatioRecord();
		BaseDataRecord preMonthOpRatioRecord= opNumberInfo.getPreMonthOpRatioRecord();
		
		
		
		String text = 
				 "    "+statisticalReportParam.getStatics1Name()+"手术及操作人次数为"+lastYearOpHandleNumberRecord.getMonthNum()+"人次，比"+statisticalReportParam.getStatics3Name()+"的"+lastYearOpHandleNumberRecord.getOtherMonthNum()+"人次"+lastYearOpHandleNumberRecord.getOp()+lastYearOpHandleNumberRecord.getOpNum()+"人次，"+lastYearOpHandleNumberRecord.getRange()+"为"+lastYearOpHandleNumberRecord.getRangePercent()+"%；"
				+"比"+statisticalReportParam.getStatics2Name()+"的"+preMonthOpHandleNumberRecord.getOtherMonthNum()+"人次"+preMonthOpHandleNumberRecord.getOp()+preMonthOpHandleNumberRecord.getOpNum()+"人次，"+preMonthOpHandleNumberRecord.getRange()+"为"+preMonthOpHandleNumberRecord.getRangePercent()+"%（图3）。\n"
				+"    "+statisticalReportParam.getStatics1Name()+"手术及治疗性操作人次数为"+lastYearOpCureNumberRecord.getMonthNum()+"人次，比"+statisticalReportParam.getStatics3Name()+"的"+lastYearOpCureNumberRecord.getOtherMonthNum()+"人次"+lastYearOpCureNumberRecord.getOp()+lastYearOpCureNumberRecord.getOpNum()+"人次，"+lastYearOpCureNumberRecord.getRange()+"为"+lastYearOpCureNumberRecord.getRangePercent()+"%；"
				+"比"+statisticalReportParam.getStatics2Name()+"的"+preMonthOpCureNumberRecord.getOtherMonthNum()+"人次"+preMonthOpCureNumberRecord.getOp()+preMonthOpCureNumberRecord.getOpNum()+"人次，"+preMonthOpCureNumberRecord.getRange()+"为"+preMonthOpCureNumberRecord.getRangePercent()+"%（图3）。\n"
				+"    "+statisticalReportParam.getStatics1Name()+"三四级手术及治疗性操作人次数为"+lastYearThirdForthNumberRecord.getMonthNum()+"人次，比"+statisticalReportParam.getStatics3Name()+"的"+lastYearThirdForthNumberRecord.getOtherMonthNum()+"人次"+lastYearThirdForthNumberRecord.getOp()+lastYearThirdForthNumberRecord.getOpNum()+"人次，"+lastYearThirdForthNumberRecord.getRange()+"为"+lastYearThirdForthNumberRecord.getRangePercent()+"%；"
				+"比"+statisticalReportParam.getStatics2Name()+"的"+preMonthThirdForthNumberRecord.getOtherMonthNum()+"人次"+preMonthThirdForthNumberRecord.getOp()+preMonthThirdForthNumberRecord.getOpNum()+"人次，"+preMonthThirdForthNumberRecord.getRange()+"为"+preMonthThirdForthNumberRecord.getRangePercent()+"%（图3）。\n"
				+"    "+statisticalReportParam.getStatics1Name()+"三四级手术及治疗性操作占比为"+lastYearThirdForthRatioRecord.getMonthNum()+"%，比"+statisticalReportParam.getStatics3Name()+"的"+lastYearThirdForthRatioRecord.getOtherMonthNum()+"%人次"+lastYearThirdForthRatioRecord.getOp()+lastYearThirdForthRatioRecord.getOpNum()+"%，"+lastYearThirdForthRatioRecord.getRange()+"为"+lastYearThirdForthRatioRecord.getRangePercent()+"%；"
				+"比"+statisticalReportParam.getStatics2Name()+"的"+preMonthThirdForthRatioRecord.getOtherMonthNum()+"%"+preMonthThirdForthRatioRecord.getOp()+preMonthThirdForthRatioRecord.getOpNum()+"%，"+preMonthThirdForthRatioRecord.getRange()+"为"+preMonthThirdForthRatioRecord.getRangePercent()+"%（图4）。\n"
				+"    "+statisticalReportParam.getStatics1Name()+"手术占比为"+lastYearOpRatioRecord.getMonthNum()+"%，比"+statisticalReportParam.getStatics3Name()+"的"+lastYearOpRatioRecord.getOtherMonthNum()+"%"+lastYearOpRatioRecord.getOp()+lastYearOpRatioRecord.getOpNum()+"%，"+lastYearOpRatioRecord.getRange()+"为"+lastYearOpRatioRecord.getRangePercent()+"%；"
				+"比"+statisticalReportParam.getStatics2Name()+"的"+preMonthOpRatioRecord.getOtherMonthNum()+"%"+preMonthOpRatioRecord.getOp()+preMonthOpRatioRecord.getOpNum()+"%，"+preMonthOpRatioRecord.getRange()+"为"+preMonthOpRatioRecord.getRangePercent()+"%（图4）。";

		return text;
	}
	
	
	public static String getThirdForthOpRatioText(OpNumberInfo opNumberInfo, StatisticalReportParam statisticalReportParam) {
		

		BaseDataRecord lastYearHolidayOpCureHandleNumberRecord = opNumberInfo.getLastYearHolidayOpCureHandleNumberRecord();
		BaseDataRecord preMonthHolidayOpCureHandleNumberRecord = opNumberInfo.getPreMonthHolidayOpCureHandleNumberRecord();
		
		
		
		BaseDataRecord lastYearHolidayOpCureNumberRecord = opNumberInfo.getLastYearHolidayOpCureNumberRecord();
		BaseDataRecord preMonthHolidayOpCureNumberRecord = opNumberInfo.getPreMonthHolidayOpCureNumberRecord();
		
		
		
		BaseDataRecord lastYearHolidayCureNumberRecord= opNumberInfo.getLastYearHolidayCureNumberRecord();
		BaseDataRecord preMonthHolidayCureNumberRecord= opNumberInfo.getPreMonthHolidayCureNumberRecord();
		
		
		BaseDataRecord lastYearHolidayDiagHandleNumberRecord= opNumberInfo.getLastYearHolidayDiagHandleNumberRecord();
		BaseDataRecord preMonthholidayDiagHandleNumberRecord= opNumberInfo.getPreMonthholidayDiagHandleNumberRecord();
	
		
		
		String text = 
				 "    "+statisticalReportParam.getStatics1Name()+"节假日手术及治疗性操作人次数为"+lastYearHolidayOpCureHandleNumberRecord.getMonthNum()+"人次，比"+statisticalReportParam.getStatics3Name()+"的"+lastYearHolidayOpCureHandleNumberRecord.getOtherMonthNum()+"人次"+lastYearHolidayOpCureHandleNumberRecord.getOp()+lastYearHolidayOpCureHandleNumberRecord.getOpNum()+"人次，"+lastYearHolidayOpCureHandleNumberRecord.getRange()+"为"+lastYearHolidayOpCureHandleNumberRecord.getRangePercent()+"%；"
				+"比"+statisticalReportParam.getStatics2Name()+"的"+preMonthHolidayOpCureHandleNumberRecord.getOtherMonthNum()+"人次"+preMonthHolidayOpCureHandleNumberRecord.getOp()+preMonthHolidayOpCureHandleNumberRecord.getOpNum()+"人次，"+preMonthHolidayOpCureHandleNumberRecord.getRange()+"为"+preMonthHolidayOpCureHandleNumberRecord.getRangePercent()+"%。\n"
				+"    "+statisticalReportParam.getStatics1Name()+"节假日手术治疗人次数为"+lastYearHolidayOpCureNumberRecord.getMonthNum()+"人次，比"+statisticalReportParam.getStatics3Name()+"的"+lastYearHolidayOpCureNumberRecord.getOtherMonthNum()+"人次"+lastYearHolidayOpCureNumberRecord.getOp()+lastYearHolidayOpCureNumberRecord.getOpNum()+"人次，"+lastYearHolidayOpCureNumberRecord.getRange()+"为"+lastYearHolidayOpCureNumberRecord.getRangePercent()+"%；"
				+"比"+statisticalReportParam.getStatics2Name()+"的"+preMonthHolidayOpCureNumberRecord.getOtherMonthNum()+"人次"+preMonthHolidayOpCureNumberRecord.getOp()+preMonthHolidayOpCureNumberRecord.getOpNum()+"人次，"+preMonthHolidayOpCureNumberRecord.getRange()+"为"+preMonthHolidayOpCureNumberRecord.getRangePercent()+"%。\n"
				+"    "+statisticalReportParam.getStatics1Name()+"节假日治疗性操作人次数为"+lastYearHolidayCureNumberRecord.getMonthNum()+"人次，比"+statisticalReportParam.getStatics3Name()+"的"+lastYearHolidayCureNumberRecord.getOtherMonthNum()+"人次"+lastYearHolidayCureNumberRecord.getOp()+lastYearHolidayCureNumberRecord.getOpNum()+"人次，"+lastYearHolidayCureNumberRecord.getRange()+"为"+lastYearHolidayCureNumberRecord.getRangePercent()+"%；"
				+"与"+statisticalReportParam.getStatics2Name()+""+preMonthHolidayCureNumberRecord.getOtherMonthNum()+"人次"+preMonthHolidayCureNumberRecord.getOp()+preMonthHolidayCureNumberRecord.getOpNum()+"人次，"+preMonthHolidayCureNumberRecord.getRange()+"为"+preMonthHolidayCureNumberRecord.getRangePercent()+"%。\n"
				+"    "+statisticalReportParam.getStatics1Name()+"节假日诊断性操作人次数为"+lastYearHolidayDiagHandleNumberRecord.getMonthNum()+"人次，比"+statisticalReportParam.getStatics3Name()+"的"+lastYearHolidayDiagHandleNumberRecord.getOtherMonthNum()+"人次"+lastYearHolidayDiagHandleNumberRecord.getOp()+lastYearHolidayDiagHandleNumberRecord.getOpNum()+"人次，"+lastYearHolidayDiagHandleNumberRecord.getRange()+"为"+lastYearHolidayDiagHandleNumberRecord.getRangePercent()+"%；"
				+"比"+statisticalReportParam.getStatics2Name()+"的"+preMonthholidayDiagHandleNumberRecord.getOtherMonthNum()+"人次"+preMonthholidayDiagHandleNumberRecord.getOp()+preMonthholidayDiagHandleNumberRecord.getOpNum()+"人次，"+preMonthholidayDiagHandleNumberRecord.getRange()+"为"+preMonthholidayDiagHandleNumberRecord.getRangePercent()+"%。";


		return text;
	}

	public static String getOutHospStatisIndexText(OutHospStatisIndexInfo outHospStatisIndexInfo,StatisticalReportParam statisticalReportParam) {
		OutHospStatisIndexItem  outNumItem = outHospStatisIndexInfo.getOutNumRecord();
		OutHospStatisIndexItem  deathNumItem = outHospStatisIndexInfo.getDeathNumRecord();
		OutHospStatisIndexItem reInHospNumItem = outHospStatisIndexInfo.getReInHospNumRecord();
		OutHospStatisIndexItem avgInDaysLessRecord = outHospStatisIndexInfo.getAvgInDaysLessRecord();
		OutHospStatisIndexItem avgInDaysMoreRecord =outHospStatisIndexInfo.getAvgInDaysMoreRecord();
		OutHospStatisIndexItem beforeOpAvgInDaysLessRecord =outHospStatisIndexInfo.getBeforeOpAvgInDaysLessRecord();
		OutHospStatisIndexItem beforeOpAvgInDaysMoreRecord =outHospStatisIndexInfo.getBeforeOpAvgInDaysMoreRecord();
		OutHospStatisIndexItem afterOpAvgInDaysLessRecord =outHospStatisIndexInfo.getAfterOpAvgInDaysLessRecord();
		OutHospStatisIndexItem afterOpAvgInDaysMoreRecord =outHospStatisIndexInfo.getAfterOpAvgInDaysMoreRecord();
		OutHospStatisIndexItem surgicalTherapeuticMoreOpNumRecord = outHospStatisIndexInfo.getSurgicalTherapeuticMoreOpNumRecord();
		OutHospStatisIndexItem thirdForthSurgicalTherapeuticMoreOpNumRecord = outHospStatisIndexInfo.getThirdForthSurgicalTherapeuticMoreOpNumRecord();
		OutHospStatisIndexItem thirdForthSurgicalTherapeuticOpNumRateRecord =outHospStatisIndexInfo.getThirdForthSurgicalTherapeuticOpNumRateRecord();
		OutHospStatisIndexItem avgCostFeeLessRecord = outHospStatisIndexInfo.getAvgCostFeeLessRecord();
		OutHospStatisIndexItem avgCostFeeMoreRecord = outHospStatisIndexInfo.getAvgCostFeeMoreRecord();
		OutHospStatisIndexItem drugProportionLessRecord = outHospStatisIndexInfo.getDrugProportionLessRecord();
		OutHospStatisIndexItem drugProportionMoreRecord=outHospStatisIndexInfo.getDrugProportionMoreRecord();
		OutHospStatisIndexItem disposableConsumableProportionLessRecord = outHospStatisIndexInfo.getDisposableConsumableProportionLessRecord();
		OutHospStatisIndexItem disposableConsumableProportionMoreRecord = outHospStatisIndexInfo.getDisposableConsumableProportionMoreRecord();
		String text =
				"    "+statisticalReportParam.getStatics1Name()+"出院人次数较多的5个科室分别为"+outNumItem.getItemName1()+"("+outNumItem.getItemValue1()+"人次)、"+outNumItem.getItemName2()+"（"+outNumItem.getItemValue2()+"人次）、"+outNumItem.getItemName3()+"（"+outNumItem.getItemValue3()+"人次）、"+outNumItem.getItemName4()+"（"+outNumItem.getItemValue4()+"人次）和"+outNumItem.getItemName5()+"（"+outNumItem.getItemValue5()+"人次）。\n"+
				"    "+statisticalReportParam.getStatics1Name()+"死亡人数较多的科室分别为"+deathNumItem.getItemName1()+"（"+deathNumItem.getItemValue1()+"人）、"+deathNumItem.getItemName2()+"（"+deathNumItem.getItemValue2()+"人）、"+deathNumItem.getItemName3()+"（"+deathNumItem.getItemValue3()+"人）、"+deathNumItem.getItemName4()+"（"+deathNumItem.getItemValue4()+"人）、"+deathNumItem.getItemName5()+"（"+deathNumItem.getItemValue5()+"人）、"+deathNumItem.getItemName6()+"（"+deathNumItem.getItemValue6()+"人）";
		
		 if(StringUtils.isNotBlank(deathNumItem.getItemName7())) {
			 text+="、"+deathNumItem.getItemName7()+"（"+deathNumItem.getItemValue7()+"人）";
			 text+=deathNumItem.getItemName8()!=null?"、":"。\n";
			 if(StringUtils.isNotBlank(deathNumItem.getItemName8())) {
				 text+=deathNumItem.getItemName8()+"（"+deathNumItem.getItemValue8()+"人）";
				 text+=deathNumItem.getItemName9()!=null?""+deathNumItem.getItemName9()+"("+deathNumItem.getItemValue9()+"人)。\n":"。\n";
			 }
		 }else {
			 text+="。\n";
		 }
		 
		

		
		if(reInHospNumItem!=null) {
			text+="    "+statisticalReportParam.getStatics1Name()+"出院患者当天再住院共"+reInHospNumItem.getTotalNum()+"人。";
			if(reInHospNumItem.getItemName1()!=null && reInHospNumItem.getItemValue1().compareTo(new BigDecimal(0))==1) {
				text+=""+reInHospNumItem.getItemName1()+reInHospNumItem.getItemValue1()+"人"+(reInHospNumItem.getItemValue2().compareTo(new BigDecimal(0))==0?"。\n":"、")+"";
			}
			if(reInHospNumItem.getItemName2()!=null && reInHospNumItem.getItemValue2().compareTo(new BigDecimal(0))==1) {
				text+=""+reInHospNumItem.getItemName2()+reInHospNumItem.getItemValue2()+"人"+(reInHospNumItem.getItemValue3().compareTo(new BigDecimal(0))==0?"。\n":"、")+"";
			}
			if(reInHospNumItem.getItemName3()!=null && reInHospNumItem.getItemValue3().compareTo(new BigDecimal(0))==1) {
				text+=""+reInHospNumItem.getItemName3()+reInHospNumItem.getItemValue3()+"人"+(reInHospNumItem.getItemValue4().compareTo(new BigDecimal(0))==0?"。\n":"、")+"";
			}
			if(reInHospNumItem.getItemName4()!=null && reInHospNumItem.getItemValue4().compareTo(new BigDecimal(0))==1) {
				text+=""+reInHospNumItem.getItemName4()+reInHospNumItem.getItemValue4()+"人"+(reInHospNumItem.getItemValue5().compareTo(new BigDecimal(0))==0?"。\n":"、")+"";
			}
			if(reInHospNumItem.getItemName5()!=null && reInHospNumItem.getItemValue5().compareTo(new BigDecimal(0))==1) {
				text+=""+reInHospNumItem.getItemName5()+reInHospNumItem.getItemValue5()+"人"+(reInHospNumItem.getItemValue6().compareTo(new BigDecimal(0))==0?"。\n":"、")+"";
			}
			if(reInHospNumItem.getItemName6()!=null && reInHospNumItem.getItemValue6().compareTo(new BigDecimal(0))==1) {
				text+=""+reInHospNumItem.getItemName6()+reInHospNumItem.getItemValue6()+"人"+(reInHospNumItem.getItemValue7().compareTo(new BigDecimal(0))==0?"。\n":"、")+"";
			}
			if(reInHospNumItem.getItemName7()!=null && reInHospNumItem.getItemValue7().compareTo(new BigDecimal(0))==1) {
				text+=""+reInHospNumItem.getItemName7()+reInHospNumItem.getItemValue7()+"人"+(reInHospNumItem.getItemValue8().compareTo(new BigDecimal(0))==0?"。\n":"、")+"";
			}
			if(reInHospNumItem.getItemName8()!=null && reInHospNumItem.getItemValue8().compareTo(new BigDecimal(0))==1) {
				text+=""+reInHospNumItem.getItemName8()+reInHospNumItem.getItemValue8()+"人"+(reInHospNumItem.getItemValue9().compareTo(new BigDecimal(0))==0?"。\n":"、")+"";
			}
			if(reInHospNumItem.getItemName9()!=null && reInHospNumItem.getItemValue9().compareTo(new BigDecimal(0))==1) {
				text+=""+reInHospNumItem.getItemName9()+reInHospNumItem.getItemValue9()+"人"+(reInHospNumItem.getItemValue10().compareTo(new BigDecimal(0))==0?"。\n":"、")+"";
			}
			
		}
			/*"     "+year+"年"+month+"月出院患者当天再住院共"+reInHospNumItem.getTotalNum()+"人，"+(reInHospNumItem.getItemName1()!=null && reInHospNumItem.getItemValue1().compareTo(new BigDecimal(0))==0?"":reInHospNumItem.getItemName1()+reInHospNumItem.getItemValue1()+"人，"+(reInHospNumItem.getItemName2()!=null && reInHospNumItem.getItemValue2().compareTo(new BigDecimal(0))==0?"":reInHospNumItem.getItemName2()+reInHospNumItem.getItemValue2()+"人、"+
						 ""+(reInHospNumItem.getItemName3()!=null && reInHospNumItem.getItemValue3().compareTo(new BigDecimal(0))==0?"":reInHospNumItem.getItemName3()+reInHospNumItem.getItemValue3()+"人、"+
						 ""+(reInHospNumItem.getItemName4()!=null && reInHospNumItem.getItemValue4().compareTo(new BigDecimal(0))==0?"":reInHospNumItem.getItemName4()+reInHospNumItem.getItemValue4()+"人、"+
						 ""+(reInHospNumItem.getItemName5()!=null && reInHospNumItem.getItemValue5().compareTo(new BigDecimal(0))==0?"":reInHospNumItem.getItemName5()+reInHospNumItem.getItemValue5()+"人。\n"+*/
		  text+="    "+statisticalReportParam.getStatics1Name()+"出院患者平均住院天数较少的5个科室分别为"+avgInDaysLessRecord.getItemName1()+"（"+avgInDaysLessRecord.getItemValue1()+"天）、"+avgInDaysLessRecord.getItemName2()+"（"+avgInDaysLessRecord.getItemValue2()+"天）、"+avgInDaysLessRecord.getItemName3()+"（"+avgInDaysLessRecord.getItemValue3()+"天）、"+avgInDaysLessRecord.getItemName4()+"（"+avgInDaysLessRecord.getItemValue4()+"天）和"+avgInDaysLessRecord.getItemName5()+"（"+avgInDaysLessRecord.getItemValue5()+"天）；"+statisticalReportParam.getStatics1Name()+"出院患者平均住院天数较多的5个科室分别为"+avgInDaysMoreRecord.getItemName1()+"（"+avgInDaysMoreRecord.getItemValue1()+"天）、"+
				""+avgInDaysMoreRecord.getItemName2()+"（"+avgInDaysMoreRecord.getItemValue2()+"天）、"+avgInDaysMoreRecord.getItemName3()+"（"+avgInDaysMoreRecord.getItemValue3()+"天）、"+avgInDaysMoreRecord.getItemName4()+"（"+avgInDaysMoreRecord.getItemValue4()+"天）、"+avgInDaysMoreRecord.getItemName5()+"（"+avgInDaysMoreRecord.getItemValue5()+"天）。\n"+
				"    "+statisticalReportParam.getStatics1Name()+"出院患者术前平均住院天数较少的5个科室分别为"+beforeOpAvgInDaysLessRecord.getItemName1()+"（"+beforeOpAvgInDaysLessRecord.getItemValue1()+"天）、"+beforeOpAvgInDaysLessRecord.getItemName2()+"（"+beforeOpAvgInDaysLessRecord.getItemValue2()+"天）、"+beforeOpAvgInDaysLessRecord.getItemName3()+"（"+beforeOpAvgInDaysLessRecord.getItemValue3()+"天）、"+beforeOpAvgInDaysLessRecord.getItemName4()+"（"+beforeOpAvgInDaysLessRecord.getItemValue4()+"天）、"+beforeOpAvgInDaysLessRecord.getItemName5()+"（"+beforeOpAvgInDaysLessRecord.getItemValue5()+"天）。\n"+
				"    "+statisticalReportParam.getStatics1Name()+"出院患者术前住院天数较多的5个科室分别为"+beforeOpAvgInDaysMoreRecord.getItemName1()+"（"+beforeOpAvgInDaysMoreRecord.getItemValue1()+"天）、"+beforeOpAvgInDaysMoreRecord.getItemName2()+"（"+beforeOpAvgInDaysMoreRecord.getItemValue2()+"天）、"+beforeOpAvgInDaysMoreRecord.getItemName3()+"（"+beforeOpAvgInDaysMoreRecord.getItemValue3()+"天）、"+beforeOpAvgInDaysMoreRecord.getItemName4()+"（"+beforeOpAvgInDaysMoreRecord.getItemValue4()+"天）和"+beforeOpAvgInDaysMoreRecord.getItemName5()+"（"+beforeOpAvgInDaysMoreRecord.getItemValue5()+"天）。\n"+
				"    "+statisticalReportParam.getStatics1Name()+"出院患者术后住院天数较少的科室包括"+afterOpAvgInDaysLessRecord.getItemName1()+"（"+afterOpAvgInDaysLessRecord.getItemValue1()+"天）、"+afterOpAvgInDaysLessRecord.getItemName2()+"（"+afterOpAvgInDaysLessRecord.getItemValue2()+"天）、"+afterOpAvgInDaysLessRecord.getItemName3()+"（"+afterOpAvgInDaysLessRecord.getItemValue3()+"天）、"+afterOpAvgInDaysLessRecord.getItemName4()+"（"+afterOpAvgInDaysLessRecord.getItemValue4()+"天）、"+afterOpAvgInDaysLessRecord.getItemName5()+"（"+afterOpAvgInDaysLessRecord.getItemValue5()+"天）。\n"+
				"    "+statisticalReportParam.getStatics1Name()+"出院患者术后住院天数较多的5个科室分别为"+afterOpAvgInDaysMoreRecord.getItemName1()+"（"+afterOpAvgInDaysMoreRecord.getItemValue1()+"天）、"+afterOpAvgInDaysMoreRecord.getItemName2()+"（"+afterOpAvgInDaysMoreRecord.getItemValue2()+"天）、"+afterOpAvgInDaysMoreRecord.getItemName3()+"（"+afterOpAvgInDaysMoreRecord.getItemValue3()+"天）"+
				"、"+afterOpAvgInDaysMoreRecord.getItemName4()+"（"+afterOpAvgInDaysMoreRecord.getItemValue4()+"天）、"+afterOpAvgInDaysMoreRecord.getItemName5()+"（"+afterOpAvgInDaysMoreRecord.getItemValue5()+"天）。（注：因小儿神经科病房、风湿免疫科、小儿呼吸综合科病房、小儿肾病风湿免疫科病房、东院保健呼吸科、外科ICU病房、血液科、保健内分泌科病房、全科医学科病房、保健呼吸科病房、东院血液科病房、神经内科病房、东院急诊ICU、保健外科病房虽然术后平均住院天是较高手术量太小，该指标不具代表性）\n"+
				"    "+statisticalReportParam.getStatics1Name()+"出院患者手术及治疗性操作人次数较多的5个科室为"+surgicalTherapeuticMoreOpNumRecord.getItemName1()+"（"+surgicalTherapeuticMoreOpNumRecord.getItemValue1()+"人次）、"+surgicalTherapeuticMoreOpNumRecord.getItemName2()+"（"+surgicalTherapeuticMoreOpNumRecord.getItemValue2()+"人次）、"+surgicalTherapeuticMoreOpNumRecord.getItemName3()+"（"+surgicalTherapeuticMoreOpNumRecord.getItemValue3()+"人次）、"+surgicalTherapeuticMoreOpNumRecord.getItemName4()+"（"+surgicalTherapeuticMoreOpNumRecord.getItemValue4()+"人次）和"+surgicalTherapeuticMoreOpNumRecord.getItemName5()+"（"+surgicalTherapeuticMoreOpNumRecord.getItemValue5()+"人次）。\n"+
				"    "+statisticalReportParam.getStatics1Name()+"出院患者三四级手术及治疗性操作人次较多的5个科室为"+thirdForthSurgicalTherapeuticMoreOpNumRecord.getItemName1()+"（"+thirdForthSurgicalTherapeuticMoreOpNumRecord.getItemValue1()+"人次）、"+thirdForthSurgicalTherapeuticMoreOpNumRecord.getItemName2()+"（"+thirdForthSurgicalTherapeuticMoreOpNumRecord.getItemValue2()+"人次）、"+thirdForthSurgicalTherapeuticMoreOpNumRecord.getItemName3()+"（"+thirdForthSurgicalTherapeuticMoreOpNumRecord.getItemValue3()+"人次）、"+thirdForthSurgicalTherapeuticMoreOpNumRecord.getItemName4()+"（"+thirdForthSurgicalTherapeuticMoreOpNumRecord.getItemValue4()+"人次）和"+thirdForthSurgicalTherapeuticMoreOpNumRecord.getItemName5()+"（"+thirdForthSurgicalTherapeuticMoreOpNumRecord.getItemValue5()+"人次）。\n"+
				"    "+statisticalReportParam.getStatics1Name()+"出院患者三四级手术及治疗性操作占比最多的5个科室分别为"+thirdForthSurgicalTherapeuticOpNumRateRecord.getItemName1()+"（"+thirdForthSurgicalTherapeuticOpNumRateRecord.getItemValue1()+"%）、"+thirdForthSurgicalTherapeuticOpNumRateRecord.getItemName2()+"("+thirdForthSurgicalTherapeuticOpNumRateRecord.getItemValue2()+"%）、"+thirdForthSurgicalTherapeuticOpNumRateRecord.getItemName3()+"("+thirdForthSurgicalTherapeuticOpNumRateRecord.getItemValue4()+"%）、"+thirdForthSurgicalTherapeuticOpNumRateRecord.getItemName4()+"("+thirdForthSurgicalTherapeuticOpNumRateRecord.getItemValue4()+"%)、"+thirdForthSurgicalTherapeuticOpNumRateRecord.getItemName5()+"（"+thirdForthSurgicalTherapeuticOpNumRateRecord.getItemValue5()+"%）。\n"+
				"    "+statisticalReportParam.getStatics1Name()+"出院患者平均住院费用较少的5个科室为"+avgCostFeeLessRecord.getItemName1()+"（"+avgCostFeeLessRecord.getItemValue1()+"元）、"+avgCostFeeLessRecord.getItemName2()+"（"+avgCostFeeLessRecord.getItemValue2()+"元）、"+avgCostFeeLessRecord.getItemName3()+"（"+avgCostFeeLessRecord.getItemValue3()+"元）、"+avgCostFeeLessRecord.getItemName4()+"（"+avgCostFeeLessRecord.getItemValue4()+"元）和"+avgCostFeeLessRecord.getItemName5()+"（"+avgCostFeeLessRecord.getItemValue5()+"元）；出院患者平均住院费用较多的5个科室为"+avgCostFeeMoreRecord.getItemName1()+"（"+avgCostFeeMoreRecord.getItemValue1()+"元）、"+avgCostFeeMoreRecord.getItemName2()+"（"+avgCostFeeMoreRecord.getItemValue2()+"元）、"+avgCostFeeMoreRecord.getItemName3()+"（"+avgCostFeeMoreRecord.getItemValue3()+"元）、"+avgCostFeeMoreRecord.getItemName4()+"（"+avgCostFeeMoreRecord.getItemValue4()+"元）和"+avgCostFeeMoreRecord.getItemName5()+"（"+avgCostFeeMoreRecord.getItemValue5()+"元）。\n"+
				"    "+statisticalReportParam.getStatics1Name()+"出院患者药占比较少的5个科室为"+drugProportionLessRecord.getItemName1()+"（"+drugProportionLessRecord.getItemValue1()+"%）、"+
				""+drugProportionLessRecord.getItemName2()+"（"+drugProportionLessRecord.getItemValue2()+"%）、"+drugProportionLessRecord.getItemName3()+"（"+drugProportionLessRecord.getItemValue3()+"%）、"+drugProportionLessRecord.getItemName4()+"（"+drugProportionLessRecord.getItemValue4()+"%）和"+drugProportionLessRecord.getItemName5()+"（"+drugProportionLessRecord.getItemValue5()+"%）；药占比较多的5个科室为"+drugProportionMoreRecord.getItemName1()+"（"+drugProportionMoreRecord.getItemValue1()+"%）、"+drugProportionMoreRecord.getItemName2()+"（"+drugProportionMoreRecord.getItemValue2()+"%）、"+drugProportionMoreRecord.getItemName3()+"（"+drugProportionMoreRecord.getItemValue3()+"%）、"+drugProportionMoreRecord.getItemName4()+"（"+drugProportionMoreRecord.getItemValue4()+"%）和"+drugProportionMoreRecord.getItemName5()+"（"+drugProportionMoreRecord.getItemValue5()+"%）。\n"+
				"    "+statisticalReportParam.getStatics1Name()+"出院患者耗占比较少的5个科室为"+disposableConsumableProportionLessRecord.getItemName1()+"（"+disposableConsumableProportionLessRecord.getItemValue1()+"%）、"+disposableConsumableProportionLessRecord.getItemName2()+"（"+disposableConsumableProportionLessRecord.getItemValue2()+"%）、"+disposableConsumableProportionLessRecord.getItemName3()+"（"+disposableConsumableProportionLessRecord.getItemValue3()+"%）、"+disposableConsumableProportionLessRecord.getItemName4()+"（"+disposableConsumableProportionLessRecord.getItemValue4()+"%）"+
				""+disposableConsumableProportionLessRecord.getItemName5()+"（"+disposableConsumableProportionLessRecord.getItemValue5()+"%）；耗占比较多的5个科室为"+disposableConsumableProportionMoreRecord.getItemName1()+"（"+disposableConsumableProportionMoreRecord.getItemValue1()+"%）、"+disposableConsumableProportionMoreRecord.getItemName2()+"（"+disposableConsumableProportionMoreRecord.getItemValue2()+"%）、"+disposableConsumableProportionMoreRecord.getItemName3()+"（"+disposableConsumableProportionMoreRecord.getItemValue3()+"%）、"+disposableConsumableProportionMoreRecord.getItemName4()+"（"+disposableConsumableProportionMoreRecord.getItemValue4()+"%）和"+disposableConsumableProportionMoreRecord.getItemName5()+"("+disposableConsumableProportionMoreRecord.getItemValue5()+"%)(见表2)。";

		
		return text;
	}
	
	
	


}
